package com.brainhealth.customer.domain;

import com.brainhealth.common.enums.PayRuleEnum;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

/**
 * 积分商城订单明细表对象 score_mall_order_detail
 * 
 * @author wolong
 * @date 2023-11-01
 */
public class ScoreMallOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分商城订单明细表主键 */
    private Long id;

    /** 积分商城订单明细ID */
    @Excel(name = "积分商城订单明细ID")
    private String scoreMallOrderDetailId;

    /** 积分商城订单ID */
    @Excel(name = "积分商城订单ID")
    private String scoreMallOrderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 支付规则 (0：积分 1：现金 2：积分+现金） */
    @Excel(name = "支付规则 (0：积分 1：现金 2：积分+现金）")
    private PayRuleEnum goodsPayRule;

    /** 商品积分数 */
    @Excel(name = "商品积分数")
    private Long goodsScore;

    /** 商品现金（单位:分） */
    @Excel(name = "商品现金", readConverterExp = "单=位:分")
    private Long goodsMoney;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long goodsAmount;

    /** 删除标志(0：未删除 1：已删除) */
    @Excel(name = "删除标志(0：未删除 1：已删除)")
    private Integer yn;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getScoreMallOrderDetailId()
    {
        return scoreMallOrderDetailId;
    }

    public void setScoreMallOrderDetailId(String scoreMallOrderDetailId)
    {
        this.scoreMallOrderDetailId = scoreMallOrderDetailId;
    }

    public String getScoreMallOrderId()
    {
        return scoreMallOrderId;
    }

    public void setScoreMallOrderId(String scoreMallOrderId)
    {
        this.scoreMallOrderId = scoreMallOrderId;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public PayRuleEnum getGoodsPayRule()
    {
        return goodsPayRule;
    }

    public void setGoodsPayRule(PayRuleEnum goodsPayRule)
    {
        this.goodsPayRule = goodsPayRule;
    }

    public void setGoodsScore(Long goodsScore)
    {
        this.goodsScore = goodsScore;
    }

    public Long getGoodsScore() 
    {
        return goodsScore;
    }
    public void setGoodsMoney(Long goodsMoney) 
    {
        this.goodsMoney = goodsMoney;
    }

    public Long getGoodsMoney() 
    {
        return goodsMoney;
    }
    public void setGoodsAmount(Long goodsAmount) 
    {
        this.goodsAmount = goodsAmount;
    }

    public Long getGoodsAmount() 
    {
        return goodsAmount;
    }
    public void setYn(Integer yn) 
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scoreMallOrderDetailId", getScoreMallOrderDetailId())
            .append("scoreMallOrderId", getScoreMallOrderId())
            .append("goodsId", getGoodsId())
            .append("goodsPayRule", getGoodsPayRule())
            .append("goodsScore", getGoodsScore())
            .append("goodsMoney", getGoodsMoney())
            .append("goodsAmount", getGoodsAmount())
            .append("yn", getYn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
